<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<jsp:useBean id="user" class="com.zaprk.bean.User" scope="page">
    <%--设置bena属性的值--%>
    <jsp:setProperty name="user" property="name" value="翠花"></jsp:setProperty>
    <jsp:setProperty name="user" property="age" value="10"></jsp:setProperty>
    <jsp:setProperty name="user" property="sex" value="女"></jsp:setProperty>
</jsp:useBean>

<jsp:getProperty name="user" property="sex"/>
</body>
</html>
